import com.test.platform.model.DeveloperInfo
import com.test.platform.model.Project
import com.test.platform.model.PublishInfo
import com.test.platform.model.XTSReport
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface ApiService {
    // 项目相关接口
    @GET("api/projects")
    suspend fun getProjects(): List<Project>
    
    @POST("api/projects")
    suspend fun createProject(@Body project: Project): Project
    
    @DELETE("api/projects/{id}")
    suspend fun deleteProject(@Path("id") id: Long)
    
    // 开发信息相关接口
    @GET("api/developer-info")
    suspend fun getDeveloperInfo(): List<DeveloperInfo>
    
    // 发布信息相关接口
    @GET("api/publish-info")
    suspend fun getPublishInfo(): List<PublishInfo>
    
    // XTS报告相关接口
    @GET("api/xts-reports")
    suspend fun getXTSReports(): List<XTSReport>
}